{"version":3,"sources":["main-ui-control-custom-entity.js"],"names":["BX","namespace","Main","ui","CustomEntity","this","field","labelInput","hiddenInput","popupContainer","inputClass","squareClass","multiple","isMultiple","hasClass","Filter","Utils","getByClass","JSON","parse","data","prototype","setField","reset","getField","getId","hiddenNode","getHiddenNode","id","type","isDomNode","name","getLabelNode","getBySelector","getSquareByValue","value","util","jsencode","join","getSquares","removeSquares","forEach","remove","setSquare","label","squareData","block","item","_label","_value","square","decl","squares","length","prepend","insertAfter","getCurrentValues","result","i","push","ex","setData","setMultipleData","setSingleData","fireEvent","items","values","isArray","stringify","isPlainObject","setPopupContainer","container","getPopupContainer"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,cAEbD,GAAGE,KAAKC,GAAGC,aAAe,WAEzBC,KAAKC,MAAQ,KACbD,KAAKE,WAAa,KAClBF,KAAKG,YAAc,KACnBH,KAAKI,eAAiB,KACtBJ,KAAKK,WAAa,yBAClBL,KAAKM,YAAc,iBACnBN,KAAKO,SAAW,MASjBZ,GAAGE,KAAKC,GAAGC,aAAaS,WAAa,SAASP,GAE7C,KAAMA,IAAUN,GAAGc,SAASR,EAAO,0BACnC,CACCA,EAAQN,GAAGe,OAAOC,MAAMC,WAAWX,EAAO,0BAG3C,QAASA,GAASY,KAAKC,MAAMnB,GAAGoB,KAAKd,EAAO,cAK7CN,GAAGE,KAAKC,GAAGC,aAAaiB,WACvBC,SAAU,SAAShB,GAElB,GAAID,KAAKC,QAAUA,EACnB,CACCD,KAAKC,MAAQA,EACbD,KAAKkB,UAIPV,WAAY,WAEX,OAAOb,GAAGE,KAAKC,GAAGC,aAAaS,WAAWR,KAAKmB,aAGhDD,MAAO,WAENlB,KAAKE,WAAa,KAClBF,KAAKG,YAAc,MAGpBgB,SAAU,WAET,OAAOnB,KAAKC,OAGbmB,MAAO,WAEN,IAAIC,EAAarB,KAAKsB,gBACtB,IAAIC,EAAK,KAET,GAAI5B,GAAG6B,KAAKC,UAAUJ,GACtB,CACCE,EAAKF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